﻿//===============================================================================
// Microsoft Innovation Centre - Western Europe
// Copyright (c) 2008 Microsoft Corporation. All rights reserved.
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//===============================================================================

using System;
using System.Collections.ObjectModel;
using Microsoft.WVB.Silverlight.Infrastructure;

namespace Microsoft.WVB.Framework.Entities
{
    public class Broadcaster : BaseEntity
    {
        public string Name
        {
            get { return _Name; }
            set { _Name = value; OnPropertyChanged(this.GetPropertySymbol(o => o.Name)); }
        }
        private string _Name;

        public Uri Icon
        {
            get { return _Icon; }
            set { _Icon = value; OnPropertyChanged(this.GetPropertySymbol(o => o.Icon)); }
        }
        private Uri _Icon;

       public string Description
        {
            get { return _Description; }
            set { _Description = value; OnPropertyChanged(this.GetPropertySymbol(o => o.Description)); }
        }
        private string _Description;


        public Uri Website
        {
            get { return _Website; }
            set { _Website = value; OnPropertyChanged(this.GetPropertySymbol(o => o.Website)); }
        }
        private Uri _Website;


        public string Country
        {
            get { return _Country; }
            set { _Country = value; OnPropertyChanged(this.GetPropertySymbol(o => o.Country)); }
        }
        private string _Country;


        Collection<Channel> _Channels = new Collection<Channel>();
        public Collection<Channel> Channels
        {
            get
            {
                return _Channels;
            }
            set
            {
                _Channels = value;
                base.OnPropertyChanged(this.GetPropertySymbol(o => o.Channels));
            }
        }
    }
}
